//package com.douqu.game.main.msg.param;
//
//import com.douqu.game.core.controller.PlayerController;
//import com.douqu.game.core.entity.Player;
//import com.douqu.game.core.protobuf.SGCommonProto;
//import com.douqu.game.main.GameServer;
//import com.douqu.game.main.util.MsgUtils;
//
///**
// * @Author: Bean
// * @Description:
// * @Date: 2018-01-22 20:36
// */
//public class StartBattleArenaAIParam extends StartBattleParam {
//
//    private Player targetPlayer;
//
//    public StartBattleArenaAIParam(String battleId, SGCommonProto.E_BATTLE_TYPE battleType, String playerIndex, String serverHost, int serverPort, Player targetPlayer)
//    {
//        super(battleId, battleType, playerIndex, serverHost, serverPort);
//
//        this.targetPlayer = targetPlayer;
//    }
//
//
//    @Override
//    public void sendStartBattle()
//    {
//        PlayerController playerController = GameServer.getInstance().getWorldManager().getPlayerController(playerIndex);
//        if(playerController == null)
//            return;
//
//        MsgUtils.sendArenaBattle(playerController, serverHost, serverPort, targetPlayer, battleId);
//    }
//
//    public Player getTargetPlayer() {
//        return targetPlayer;
//    }
//
//    public void setTargetPlayer(Player targetPlayer) {
//        this.targetPlayer = targetPlayer;
//    }
//}
